package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.sql.Blob;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备档案表
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_equipment_archives")
@ApiModel(value = "EquipmentArchives对象", description = "设备档案表")
public class EquipmentArchives implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("设备名称")
    private String name;

    @ApiModelProperty("所属组织ID")
    private Integer organizationId;

    @ApiModelProperty("所属组织名称")
    private String organizationName;

    @ApiModelProperty("设备厂商")
    private String manufacturers;

    @ApiModelProperty("设备型号")
    private String type;

    @ApiModelProperty("设备编号")
    private Integer modelNumber;

    @ApiModelProperty("出厂日期")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime productionDate;

    @ApiModelProperty("入档日期")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creatDate;

    @ApiModelProperty("设备图片")
    private String pic;

    @ApiModelProperty("设备数量")
    private String amount;

    @ApiModelProperty("备注")
    private String comment;

    @ApiModelProperty("是否删除：0未删除，1已删除")
    @TableLogic
    private Integer isdelete;

    @ApiModelProperty("设备sn码")
    private String sn;

    @ApiModelProperty("设备类型")
    private  String equipmentType;


}
